package edu.mju.serviceutils;

import java.awt.*;
import java.util.Random;

/**
 */
public class StrUtil {
    /**
     * 获取随机字符串
     * @param count 数值长度
     * @return 字符串
     */
    public static String randString(int count){
        StringBuilder builder=new StringBuilder();
        String str = "abcdefghijklmnpqrstuvwxy0123456789";
        Random rnd = new Random();
        for(int i=0;i<count;i++) {
            int pos = rnd.nextInt(str.length());
            String s = str.substring(pos, pos + 1);
            builder.append(s);
        }
        return builder.toString();
    }

}
